package com.yfqy.app.modules.banner.dto;

import com.yfqy.app.constant.GeneralConstants;
import lombok.Data;

@Data
public class BannerQueryDTO {

    private String bannerName;

    private Byte status;

    public void setStatus(Byte status) {
        if (status != null) {
            if (status != GeneralConstants.BT0 && status != GeneralConstants.BT1) {
                throw new IllegalArgumentException("状态值不合法");
            }
        }
        this.status = status;
    }
}